<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>


    <s:url action="listNode" id="descrsUrl"/>

    <div class="refreshBox">
       	<div class="refreshButton">
   			<s:a theme="ajax" notifyTopics="/refreshNode"><s:text name="node.main.refresh.button.text" /></s:a>
   		</div>
   		<s:div id="nodes" theme="ajax" href="%{descrsUrl}" loadingText="%{getText('node.main.refresh.loading.text')}" listenTopics="/refreshNode"/>
    </div>

    <br/>

	<div class="formBox">
		<p class="formTitle"><s:text name="node.main.form.title" /></p>
		<s:form action="saveNode" validate="true" theme="ajax">
		    <s:textfield id="n_id" name="node.id" cssStyle="display:none"/>
			<s:textfield id="n_identCode" label="%{getText('node.main.form.field.identCode.label')}" name="node.identCode"/>
			
			<s:bean name="tr.gen._3bit.java._2k1s.web.util.bean.SerialInterfaces" id="_serialInterfaces" />
			<s:select id="n_serialInterface" list="#_serialInterfaces.list" listKey="id" listValue="label" label="%{getText('node.main.form.field.serialInterface.label')}" name="node.serialInterface"/>
			
			<s:textfield id="n_divisor" label="%{getText('node.main.form.field.divisor.label')}" name="node.divisor"/>
			<s:textfield id="n_timeInterval" label="%{getText('node.main.form.field.timeInterval.label')}" name="node.timeInterval"/>
			
			<s:submit theme="ajax" targets="nodes" notifyTopics="/saveNode"/>
		</s:form>
	</div>
	
	